<?php

namespace app\admin\controller\classroom;

use app\common\controller\Backend;

/**
 * 页面
 *
 * @icon fa fa-circle-o
 */
class Pages extends Backend
{

    /**
     * 模型对象
     */
    protected $model = null;
    protected $noNeedRight = ['*'];

    public function get_page_list()
    {
        $pageList = [
            ['path' => 'https://www.baidu.com', 'name' => '外部链接'],
            ['path' => '/pages/index/index', 'name' => '首页'],
            ['path' => '/pages/category/index', 'name' => '课程列表'],
            ['path' => '/pages/test/index', 'name' => '试卷列表'],
            ['path' => '/pages/member/index', 'name' => '个人中心'],
            ['path' => '/pages/course/details?id=4&lesson_id=12', 'name' => '课程详情页面（?id=课程ID&lesson_id=章节ID，可为空）'],
            ['path' => '/pages/test/details?id=1', 'name' => '试卷详情（id=试卷ID）'],
        ];
        $this->view->assign('pageList', $pageList);
        return $this->view->fetch();
    }



}